package com.pubinfo.passbook.common.model.shortMessage;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

@Data
public class ShortMessageHeadReply {
  @ApiModelProperty("请求编号")
  /**
   * 请求编号
   */
  private String reqId;
  
  @ApiModelProperty("接口调用结果编码")
  /**
   * 接口调用结果编码：
   * 1 接口调用成功；
   * 1000 调用异常；
   */
  private String resultCode;
  
  @ApiModelProperty("接口调用结果描述")
  /**
   * 接口调用结果描述
   */
  private String resultMsg;
  
  public ShortMessageHeadReply() {
  }
  
  public ShortMessageHeadReply(Map<String, Object> map) {
    this.reqId = (String) map.get("reqId");
    this.resultCode = (String) map.get("result_code");
    this.resultMsg = (String) map.get("result_msg");
  }
}
